package itheima.zuoye.Test7;

import java.math.BigDecimal;

public class Yin  extends  Cad{


    public Yin(String number, String name, String phonenumber, double money) {
        super(number, name, phonenumber, money);
    }
//银卡在支付时享受9折优惠。
    @Override
    public BigDecimal pay(BigDecimal amount) {
        return amount.multiply(new BigDecimal("0.9"));

    }

}
